package com.xiangge.zuoye.Demo5;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 16:07
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Book b1 = new Book(1,"三国",35);
        Book b2 = new Book(2,"水浒",37);
        Book b3 = new Book(3,"西游",36);

        if (b1.getPrice()>b2.getPrice()){
            if (b1.getPrice()> b3.getPrice()){
                b1.getInfo();
            }else {
                b3.getInfo();
            }
        }else {
            if (b2.getPrice()> b3.getPrice()){
                b2.getInfo();
            }else {
                b3.getInfo();
            }
        }

    }
}
